3.10.61 \(\int (A+B x) (d+e x) (b x+c x^2) \, dx\)

Optimal. Leaf size=61 \[ \frac {1}{4} x^4 (A c e+b B e+B c d)+\frac {1}{3} x^3 (A b e+A c d+b B d)+\frac {1}{2} A b d x^2+\frac {1}{5} B c e x^5 \]

________________________________________________________________________________________

Rubi [A]  time = 0.06, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {771} \begin {gather*} \frac {1}{4} x^4 (A c e+b B e+B c d)+\frac {1}{3} x^3 (A b e+A c d+b B d)+\frac {1}{2} A b d x^2+\frac {1}{5} B c e x^5 \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(A + B*x)*(d + e*x)*(b*x + c*x^2),x]

[Out]

(A*b*d*x^2)/2 + ((b*B*d + A*c*d + A*b*e)*x^3)/3 + ((B*c*d + b*B*e + A*c*e)*x^4)/4 + (B*c*e*x^5)/5

Rule 771

Int[((d_.) + (e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> In
t[ExpandIntegrand[(d + e*x)^m*(f + g*x)*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, f, g, m}, x] && N
eQ[b^2 - 4*a*c, 0] && IntegerQ[p] && (GtQ[p, 0] || (EqQ[a, 0] && IntegerQ[m]))

Rubi steps

\begin {align*} \int (A+B x) (d+e x) \left (b x+c x^2\right ) \, dx &=\int \left (A b d x+(b B d+A c d+A b e) x^2+(B c d+b B e+A c e) x^3+B c e x^4\right ) \, dx\\ &=\frac {1}{2} A b d x^2+\frac {1}{3} (b B d+A c d+A b e) x^3+\frac {1}{4} (B c d+b B e+A c e) x^4+\frac {1}{5} B c e x^5\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 55, normalized size = 0.90 \begin {gather*} \frac {1}{60} x^2 \left (15 x^2 (A c e+b B e+B c d)+20 x (A b e+A c d+b B d)+30 A b d+12 B c e x^3\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(A + B*x)*(d + e*x)*(b*x + c*x^2),x]

[Out]

(x^2*(30*A*b*d + 20*(b*B*d + A*c*d + A*b*e)*x + 15*(B*c*d + b*B*e + A*c*e)*x^2 + 12*B*c*e*x^3))/60

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int (A+B x) (d+e x) \left (b x+c x^2\right ) \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(A + B*x)*(d + e*x)*(b*x + c*x^2),x]

[Out]

IntegrateAlgebraic[(A + B*x)*(d + e*x)*(b*x + c*x^2), x]

________________________________________________________________________________________

fricas [A]  time = 0.36, size = 65, normalized size = 1.07 \begin {gather*} \frac {1}{5} x^{5} e c B + \frac {1}{4} x^{4} d c B + \frac {1}{4} x^{4} e b B + \frac {1}{4} x^{4} e c A + \frac {1}{3} x^{3} d b B + \frac {1}{3} x^{3} d c A + \frac {1}{3} x^{3} e b A + \frac {1}{2} x^{2} d b A \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)*(c*x^2+b*x),x, algorithm="fricas")

[Out]

1/5*x^5*e*c*B + 1/4*x^4*d*c*B + 1/4*x^4*e*b*B + 1/4*x^4*e*c*A + 1/3*x^3*d*b*B + 1/3*x^3*d*c*A + 1/3*x^3*e*b*A
+ 1/2*x^2*d*b*A

________________________________________________________________________________________

giac [A]  time = 0.15, size = 69, normalized size = 1.13 \begin {gather*} \frac {1}{5} \, B c x^{5} e + \frac {1}{4} \, B c d x^{4} + \frac {1}{4} \, B b x^{4} e + \frac {1}{4} \, A c x^{4} e + \frac {1}{3} \, B b d x^{3} + \frac {1}{3} \, A c d x^{3} + \frac {1}{3} \, A b x^{3} e + \frac {1}{2} \, A b d x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)*(c*x^2+b*x),x, algorithm="giac")

[Out]

1/5*B*c*x^5*e + 1/4*B*c*d*x^4 + 1/4*B*b*x^4*e + 1/4*A*c*x^4*e + 1/3*B*b*d*x^3 + 1/3*A*c*d*x^3 + 1/3*A*b*x^3*e
+ 1/2*A*b*d*x^2

________________________________________________________________________________________

maple [A]  time = 0.04, size = 56, normalized size = 0.92 \begin {gather*} \frac {B c e \,x^{5}}{5}+\frac {A b d \,x^{2}}{2}+\frac {\left (B b e +\left (A e +B d \right ) c \right ) x^{4}}{4}+\frac {\left (A c d +\left (A e +B d \right ) b \right ) x^{3}}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((B*x+A)*(e*x+d)*(c*x^2+b*x),x)

[Out]

1/5*B*c*e*x^5+1/4*(c*(A*e+B*d)+b*B*e)*x^4+1/3*(A*c*d+b*(A*e+B*d))*x^3+1/2*A*b*d*x^2

________________________________________________________________________________________

maxima [A]  time = 0.56, size = 55, normalized size = 0.90 \begin {gather*} \frac {1}{5} \, B c e x^{5} + \frac {1}{2} \, A b d x^{2} + \frac {1}{4} \, {\left (B c d + {\left (B b + A c\right )} e\right )} x^{4} + \frac {1}{3} \, {\left (A b e + {\left (B b + A c\right )} d\right )} x^{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)*(c*x^2+b*x),x, algorithm="maxima")

[Out]

1/5*B*c*e*x^5 + 1/2*A*b*d*x^2 + 1/4*(B*c*d + (B*b + A*c)*e)*x^4 + 1/3*(A*b*e + (B*b + A*c)*d)*x^3

________________________________________________________________________________________

mupad [B]  time = 1.35, size = 57, normalized size = 0.93 \begin {gather*} \frac {B\,c\,e\,x^5}{5}+\left (\frac {A\,c\,e}{4}+\frac {B\,b\,e}{4}+\frac {B\,c\,d}{4}\right )\,x^4+\left (\frac {A\,b\,e}{3}+\frac {A\,c\,d}{3}+\frac {B\,b\,d}{3}\right )\,x^3+\frac {A\,b\,d\,x^2}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x + c*x^2)*(A + B*x)*(d + e*x),x)

[Out]

x^3*((A*b*e)/3 + (A*c*d)/3 + (B*b*d)/3) + x^4*((A*c*e)/4 + (B*b*e)/4 + (B*c*d)/4) + (A*b*d*x^2)/2 + (B*c*e*x^5
)/5

________________________________________________________________________________________

sympy [A]  time = 0.07, size = 66, normalized size = 1.08 \begin {gather*} \frac {A b d x^{2}}{2} + \frac {B c e x^{5}}{5} + x^{4} \left (\frac {A c e}{4} + \frac {B b e}{4} + \frac {B c d}{4}\right ) + x^{3} \left (\frac {A b e}{3} + \frac {A c d}{3} + \frac {B b d}{3}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(e*x+d)*(c*x**2+b*x),x)

[Out]

A*b*d*x**2/2 + B*c*e*x**5/5 + x**4*(A*c*e/4 + B*b*e/4 + B*c*d/4) + x**3*(A*b*e/3 + A*c*d/3 + B*b*d/3)

________________________________________________________________________________________